package java8_20;

/**
 * @author oldliu
 * @since 1.0
 */
public class DriverTest {
    //重载是oop的重要特性之一
    public static void main(String[] args) {
        OldDriver d=new OldDriver("周一文");
        Car c=new Car();
        c.chepai="皖ANB0000";
        d.drive(c);

        Bus b=new Bus();
        b.no="236";
        d.drive(b);
        Taxi t=new Taxi();
        t.serialNo="皖A5933";
        d.drive(t);
    }
}
